import request from '@/utils/request'



export function getBusinessList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/supply/admin/business/getList',
    method: 'post',
    data: query
  })
}   

export function saveBusiness(query) {
  return request({
    url: '/supply/admin/business/save',
    method: 'post',
    data: query
  })
}

export function removeBusiness(query) {
  return request({
    url: '/supply/admin/business/remove',
    method: 'post',
    data: query
  })
}
export function getBusinessDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/supply/admin/business/getDetail',
    method: 'post',
    data: query
  })
}